﻿//
// GNS_PvEAllDate.h
// MobileManageSys
//FuncTion  人机对战总玩数据
// Created by mr.l on 16/1/16.
//
//

#ifndef __MobileManageSys__GNS_PvEAllDate__
#define __MobileManageSys__GNS_PvEAllDate__

#include "cocos2d.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "GNS_Calendar.h"
#include "GNS_PVEAllDateDaily.h"
USING_NS_CC;
using namespace cocostudio::timeline;
using namespace ui;

class GNS_PvEAllDate : public Layer
{
public:
    GNS_PvEAllDate();
    ~GNS_PvEAllDate();
    static GNS_PvEAllDate* createLayer();
    virtual bool init();
    CREATE_FUNC(GNS_PvEAllDate);
    void SetNodeName(std::string CsbName);
    void AcceptSeverDate();
    void SeleLayer(int LayerNum);
    GNS_PVEAllDateDaily * pPveAllDateDaily;
    ListView * DateListView;
    ListView * GameType;
    
private:
    void BtnCallBack(Ref *pSender , ui::Widget::TouchEventType type);
    void TimeButtonCallBack(Ref * pSender , ui::Widget::TouchEventType type);
    void ListViewCallBack(Ref*pSender,ui::Widget::TouchEventType type);
    void TitleChooseType(ImageView * type);
    void SelectedItemEvents(Ref*pSender,ui::ListView::EventType type);
    void ListViewBtn(Ref * pSender ,ui::Widget::TouchEventType type);

private:
    Node * pGNS_PvEAllDate;
    ImageView * AllDate;
    ImageView * agentbg;
    ImageView * promotersbg;
    ImageView * Playerbg;
    std::vector<ImageView *> TitleVec;
    Text * Allincome;
    Text * AllPlayout;
    Text * Allprofit;
    Text * TimeText;
    Text * GameName;
    Text * Showtype;
    Text * NodeTitle;
    GNS_Calendar * pCalendar;
    ListView * TypeListView;
    Text * allinfo;
    Text * allinto;
    Text * gameprofit;
    ImageView * separator;//分隔符
    int RecordlineCode=0;
    int typeNum;
    int SendType;
    int Mon;
    int Year;
    int Day;
};

#endif /* defined(__MobileManageSys__GNS_PvEAllDate__) */